home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: Looking for semaphore example.
- Date: 1 Apr 1996 19:31:26 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4jq01e$9kq@solutions.solon.com>
- References: <4jc5hd$1vlv@ilx018.iil.intel.com> <828220289snz@genesis.demon.co.uk> <4jlc0k$j02@solutions.solon.com> <828366149snz@genesis.demon.co.uk>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <828366149snz@genesis.demon.co.uk>,
- Lawrence Kirby <fred@genesis.demon.co.uk> wrote:
- >>Unless you wanted to implement software-level coprocesses or the like,
- >>which you could do.
-
- >Strictly conforming?
-
- Sure. You could write strictly conforming C which parses and translates
- one or more programs in an arbitrary language, and gives them various
- "calls" they can make, which could include semaphores.
-
- (Strictly conforming apart from memory requirements, anyway.)
-
- It wouldn't be an OS-level semaphore, but it would have
- *exactly* the same logical form, assuming you wanted it to.
-
- Of course, it's probably useless to someone wanting to, say, have
- two programs written in C do semaphores or locking, but it could
- be quite useful to someone wanting to, say, learn how semaphores
- work.
-
- Lesse, one hand up and one down is a 'Y', right?
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-